from django import forms


class BootstrapForm(forms.ModelForm):
    def __int__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        for name,field in self.fields.items():
            field.widget.attrs['class'] = "form-control"
            if field.widget.attrs.get('placeholder') is None:
                field.widget.attrs['placeholder'] = field.label

